<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/14
 * Time: 16:58
 */
$ofd_desc_type    = $route->bodyParams['ofd_desc_type'];             //具体类型
$ofd_desc         = $route->bodyParams['ofd_desc'];                   //费用明细，|隔开
$ofd_money        = $route->bodyParams['ofd_money'];                  //费用
$ofd_type         = $route->bodyParams['ofd_type'];                   //申报类型 0-报销申报 1-付款申报 2-备用金申报 3-交账申报
$ofd_images       = $route->bodyParams['ofd_images'];                 //图片
$ofd_department   = $route->bodyParams['ofd_department'];            //所处部门-用户
$ofd_reviewer     = $route->bodyParams['ofd_reviewer'];              //审核人
$ofd_copy_user    = $route->bodyParams['ofd_copy_user'];             //抄送人
$ofd_uid          = $route->bodyParams['ofd_uid'];                    //申请人ID
$ofd_create_time  = time();                                             //申请时间
$ofd_last_reviewer= $route->bodyParams['ofd_last_reviewer'];        //最终审核人
$ofd_oesid= $route->bodyParams['ofd_oesid'];        //最终审核人
$ofd_type_id= $route->bodyParams['ofd_type_id'];        //大类型的id
$ofd_depreciation    = $regexpObj->bodyV($response,$route,'ofd_depreciation','NUMBER');//折旧月份
$ofd_surplus_value  = $regexpObj->bodyV($response,$route,'ofd_surplus_value','NORMAL');//折旧月份





//写入数组
$insertArr = [
    'ofd_desc_type'   => $ofd_desc_type,
    'ofd_desc'         => $ofd_desc,
    'ofd_money'        => $ofd_money,
    'ofd_type'         => $ofd_type,
    'ofd_images'       => $ofd_images,
    'ofd_department'  => $ofd_department,
    'ofd_reviewer'    => $ofd_reviewer,
    'ofd_copy_user'   => $ofd_copy_user,
    'ofd_uid'          => $ofd_uid,
    'ofd_create_time' => $ofd_create_time,
    'ofd_last_reviewer'=> $ofd_last_reviewer,
    'ofd_depreciation'=> $ofd_depreciation,
    'ofd_surplus_value'=> $ofd_surplus_value,
    'ofd_oesid'=> $ofd_oesid,
    'ofd_type_id'=> $ofd_type_id,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_financial_declare",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );